<?php

namespace api\modules\v2\controllers;

use api\modules\v2\resources\search\MovieEsSearch;

use yii\data\ActiveDataFilter;
use Yii;
use yii\rest\Controller;
class MovieEsController extends Controller
{

    public $serializer = [
        'class' => 'yii\rest\Serializer',
        'collectionEnvelope' => 'items',
    ];

    public function actionIndex()
    {
        $searchModel  = new MovieEsSearch();
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
        return $dataProvider;

    }


}
